package bus;

import java.util.List;

import dao.ScoreDAO;
import dto.ScoreDTO;

public class ScoreBUS {
	public ScoreDTO info = new ScoreDTO();
	public ScoreDAO data = new ScoreDAO(null);
	
	public void setInfo(ScoreDTO Score) {
		this.info = Score;
	}
	
	public ScoreDTO getInfo() {
		return this.info;
	}
	
	public void addScore() {
		data.addScore(info);
	}
	
	public List<ScoreDTO> getAllScores(){
		return data.getAllScores();
	}
	
	public boolean updateScore(){
		return data.updateScore(info);
	}
	
	public void deleteScore(){
		data.deleteScore(info);
	}
	
	public void deleteAllScores(){
		data.deleteAllScores();
	}
	
	public int getScoreCount(){
		return data.getScoreCount();
	}
}
